package com.yong.ssj.service.order;

import java.util.List;
import java.util.Map;

import com.yong.ssj.db.dto.cost.CostMethodDto;
import com.yong.ssj.db.dto.order.OrderDto;
import com.yong.ssj.db.dto.order.OrderOperateDto;
import com.yong.ssj.db.dto.order.ReturnApplyDto;
import com.yong.ssj.vo.order.OrderOperateVo;

public interface IOrderService {
	public List<Map<String, Object>> queryBorrow();//查询申请借款订单
	public List<Map<String, Object>> queryBorrowed();//查询已经借款订单
	public List<Map<String, Object>> queryReturn();//查询申请还款订单
	public List<Map<String, Object>> queryReturned();//查询已经还款订单
	public OrderOperateDto orderOperate(long order_id);//查询订单详情
	public int updateBorrow(OrderOperateVo vo);//新增放款操作、修改订单状态order
	public int updateReturn(OrderOperateVo vo);//新增还款操作、修改订单状态order、修改预约状态return	
	public List<Map<String, Object>> queryBorrowph(String customer_name);//根据手机号查询申请借款
	public List<Map<String, Object>> queryReturnph(String customer_name);//根据手机号查询申请还款
	public List<Map<String, Object>> qupinz(String order_id );//查看凭证
	public List<Map<String, Object>> qupinRe(String order_id );//查看还款凭证
	public List<Map<String, Object>> queryCost();//查询日利率
	public int insertBorrow(double apply_money,String cost_id, long customer_id);//增加借款
	public List<Map<String, Object>> queryborrowList(long customer_id);//查询借款未完成
	public List<Map<String, Object>> queryborrowedList(long customer_id);//查询借款已经完成
	public List<Map<String, Object>> queryhuanList(long customer_id);//查询还款记录
	public List<Map<String, Object>> querytiqianList(long order);//提前还款记录
	public int querytiqianedList(long order,double money);//提前还款
	public void madeReturn();//将生成各还款订单
} 
